package com.itsu.interfaces.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itsu.interfaces.entity.UserInfoEntity;
import com.itsu.pojo.dto.RecommendationDTO;
import com.itsu.pojo.vo.LinearVo;

import java.util.List;
import java.util.Map;

public interface UserInfoService {

    void addUserInfo(UserInfoEntity userInfoEntity);

    void updateUserLogo(UserInfoEntity userInfoEntity);

    void updateUserInfo(UserInfoEntity build);

    UserInfoEntity findUserByUid(Long uid);

    Page<UserInfoEntity> findUserListOfRecommendation(List<Long> userIds, RecommendationDTO recommendationDTO);

    Page<UserInfoEntity> pageUsers(Integer page, Integer pageSize, List<Long> userIds);

    Page<UserInfoEntity> pageUsers(Integer page, Integer pageSize, List<Long> userIds, String keyword);

    Page<UserInfoEntity> pageUsers(Integer page, Integer pageSize, Long uid, String nickName, String city);

    List<UserInfoEntity> findUserByUids(List<Long> userIds);

    List<LinearVo> findListGroupByIndustry(List<Long> ids);

    List<LinearVo> findListGroupByGender(List<Long> ids);

    List<LinearVo> findListGroupByAge(List<Long> ids);

    List<LinearVo> findListGroupByLocation(List<Long> ids);

}


